<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<link href="css.css" rel="stylesheet">
</head>

<body>
	<div>
  <img id="image" src="">
</div>

<div>
	<button id="btn" style="    width: 100%;
    height: 50px;
    font-size: 24px;
    background: rgba(51,153,255,.75);
    border: none;
    margin-top: 20px;">裁剪</button>
</div>

	
		
	<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>


<script src="js.js"></script>


<script>

	 var cropper = new Cropper(image, {
        aspectRatio: 16 / 9,
        viewMode:1,
		cropBoxResizable:false,
        crop: function (e) {
            
        }
    });

	$("#btn").on("click", function () {
        var xx = cropper.getData();
		console.log(xx);
    })
</script>
</body>


</html>